﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace shbxdv.Ezviz
{
    /// <summary>
    /// 会话消息事件参数
    /// </summary>
    public class SessionMessageEventArgs : EventArgs
    {
        public SessionMessageEventArgs(OpenSDKSession session, EZMessageType msgType, long errorCode, string errorMessage, IntPtr userData)
        {
            this.Session = session;
            this.MessageType = msgType;
            this.ErrorCode = errorCode;
            this.ErrorMessage = errorMessage;
            this.UserData = userData;
        }

        public OpenSDKSession Session { get; }

        public EZMessageType MessageType { get; }
        public long ErrorCode { get; }
        public string ErrorMessage { get; }
        public IntPtr UserData { get; }
    }
}